/*
 * MainWindow.java
 *
 * Created on 2 listopad 2008, 21:50
 * 
 */

package steg.utils;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author Tryllion
 */
public class MyFileFilter extends FileFilter {

    private String ext;


    public MyFileFilter() {
        super();
    }

    public boolean accept(File file) {
        String filename = file.getName().toLowerCase();

        if(filename.endsWith(ext))
            return true;

        return false;
    }
    public String getDescription() {
        return "steganowalne";
    }

    public void setExtencion(String string) {
       ext = string;
    }

}
